from PySide2.QtCore import Signal, Slot
from PySide2.QtCore import QTimer
from PySide2.QtWidgets import QVBoxLayout
from PySide2.QtWidgets import QDialog, QWidget, QLabel

class WWaitingDialog(QDialog):
    def __init__(self, parent=None):
        super(WWaitingDialog, self).__init__(parent)

        self._ui_main_layout = QVBoxLayout()

        self._ui_animation = QWidget()

        self._ui_time_indicator = QLabel("0")

        self._ui_main_layout.addWidget(self._ui_animation)
        self._ui_main_layout.addWidget(self._ui_time_indicator)

        self.setLayout(self._ui_main_layout)

        self._count = 0

        t = QTimer(self)
        t.timeout.connect(self._update)
        t.start(1000)

    def _update(self):
        self._count += 1
        self._ui_time_indicator.setText(str(self._count))


if __name__=="__main__":
    import sys
    from PySide2.QtWidgets import QApplication
    a = QApplication()
    w = WWaitingDialog()
    w.show()
    sys.exit(a.exec_())